﻿namespace EIM_Accounting.BLL
{
    using Accounting.DAL;

    public class CP010102
    {
        private readonly Contract contract = new Contract();

        internal void AddContract(Accounting.Model.Contract contractModel)
        {
            contract.Add(contractModel);
        }

        internal Accounting.Model.Contract GetModelById(string contactId)
        {
            return contract.GetModel(int.Parse(contactId));
        }

        internal void UpdateContractBaseInfo(Accounting.Model.Contract contractModel)
        {
            contract.Update(contractModel);
        }

        internal void DelModel(string contactId)
        {
            contract.Delete(int.Parse(contactId));
        }
    }
}